package com.gk.ldj.webHelper;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.ProtocolException;
import java.net.URL;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import com.gk.ldj.base.Json;
import com.gk.ldj.base.Result;

public class Main
{
	
	/**
	 * @param args
	 */
	public static void main(String[] args)
	{
//		Result r=new Result();
//		Json s=new Json();
//		s.setAttr("url", "http://218.26.12.174:5001/ksw.asp");
//		s.setAttr("reg", "<td valign=top>([0-9|.]+)</td></tr>[\\s\\S]+");
//		s.setAttr("name", "v");
//		WebStrFun w=new WebStrFun();
//		r=w.getStr(s);
//		System.out.println(r);
		
		Result r=new Result();
		Json s=new Json();
		s.setAttr("url", "http://218.26.12.174:5001/ksw.asp");
		s.setAttr("reg", "<td valign=top>([0-9|.]+)</td></tr>[\\s\\S]+");
		s.setAttr("name", "v");
		WebStrFun w=new WebStrFun();
		r=w.getStr(s);
		System.out.println(r);
		
	}
	
}
